//
//  UserConfig.h
//  KaKaWallet
//
//  Created by admin on 16/5/5.
//  Copyright © 2016年 ibendi. All rights reserved.
//


/*
 //    RMMapper 是将与单例类相同的数据存储到NSUserDefaults中http://www.codesky.net/showhtml/25502.htm
 //     User 的属性 与 userDic  的key 相同
 
 User *user = [RMMapper objectWithClass:[User class] fromDictionary:userDic];
 [User saveUser:user];
 
 
 */

#import <Foundation/Foundation.h>


@interface UserConfig : NSObject

@property (nonatomic,strong)NSString *userName;
@property (nonatomic,strong)NSString *token; //登录成功的唯一标识


+(UserConfig *)SharedUser;

+(BOOL)isLogin;

+(void)saveUser:(id)object;

+(void)logoutUser;

@end
